package com.wbk.lotterysystemlotteryservice.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LotteryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LotteryExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNull() {
            addCriterion("start_time is null");
            return (Criteria) this;
        }

        public Criteria andStartTimeIsNotNull() {
            addCriterion("start_time is not null");
            return (Criteria) this;
        }

        public Criteria andStartTimeEqualTo(Date value) {
            addCriterion("start_time =", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotEqualTo(Date value) {
            addCriterion("start_time <>", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThan(Date value) {
            addCriterion("start_time >", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("start_time >=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThan(Date value) {
            addCriterion("start_time <", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("start_time <=", value, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeIn(List<Date> values) {
            addCriterion("start_time in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotIn(List<Date> values) {
            addCriterion("start_time not in", values, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeBetween(Date value1, Date value2) {
            addCriterion("start_time between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("start_time not between", value1, value2, "startTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeIsNull() {
            addCriterion("due_time is null");
            return (Criteria) this;
        }

        public Criteria andDueTimeIsNotNull() {
            addCriterion("due_time is not null");
            return (Criteria) this;
        }

        public Criteria andDueTimeEqualTo(Date value) {
            addCriterion("due_time =", value, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeNotEqualTo(Date value) {
            addCriterion("due_time <>", value, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeGreaterThan(Date value) {
            addCriterion("due_time >", value, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("due_time >=", value, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeLessThan(Date value) {
            addCriterion("due_time <", value, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeLessThanOrEqualTo(Date value) {
            addCriterion("due_time <=", value, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeIn(List<Date> values) {
            addCriterion("due_time in", values, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeNotIn(List<Date> values) {
            addCriterion("due_time not in", values, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeBetween(Date value1, Date value2) {
            addCriterion("due_time between", value1, value2, "dueTime");
            return (Criteria) this;
        }

        public Criteria andDueTimeNotBetween(Date value1, Date value2) {
            addCriterion("due_time not between", value1, value2, "dueTime");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoIsNull() {
            addCriterion("store_user_no is null");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoIsNotNull() {
            addCriterion("store_user_no is not null");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoEqualTo(Long value) {
            addCriterion("store_user_no =", value, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoNotEqualTo(Long value) {
            addCriterion("store_user_no <>", value, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoGreaterThan(Long value) {
            addCriterion("store_user_no >", value, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoGreaterThanOrEqualTo(Long value) {
            addCriterion("store_user_no >=", value, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoLessThan(Long value) {
            addCriterion("store_user_no <", value, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoLessThanOrEqualTo(Long value) {
            addCriterion("store_user_no <=", value, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoIn(List<Long> values) {
            addCriterion("store_user_no in", values, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoNotIn(List<Long> values) {
            addCriterion("store_user_no not in", values, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoBetween(Long value1, Long value2) {
            addCriterion("store_user_no between", value1, value2, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andStoreUserNoNotBetween(Long value1, Long value2) {
            addCriterion("store_user_no not between", value1, value2, "storeUserNo");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleIsNull() {
            addCriterion("lottery_title is null");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleIsNotNull() {
            addCriterion("lottery_title is not null");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleEqualTo(String value) {
            addCriterion("lottery_title =", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleNotEqualTo(String value) {
            addCriterion("lottery_title <>", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleGreaterThan(String value) {
            addCriterion("lottery_title >", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleGreaterThanOrEqualTo(String value) {
            addCriterion("lottery_title >=", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleLessThan(String value) {
            addCriterion("lottery_title <", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleLessThanOrEqualTo(String value) {
            addCriterion("lottery_title <=", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleLike(String value) {
            addCriterion("lottery_title like", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleNotLike(String value) {
            addCriterion("lottery_title not like", value, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleIn(List<String> values) {
            addCriterion("lottery_title in", values, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleNotIn(List<String> values) {
            addCriterion("lottery_title not in", values, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleBetween(String value1, String value2) {
            addCriterion("lottery_title between", value1, value2, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryTitleNotBetween(String value1, String value2) {
            addCriterion("lottery_title not between", value1, value2, "lotteryTitle");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainIsNull() {
            addCriterion("lottery_explain is null");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainIsNotNull() {
            addCriterion("lottery_explain is not null");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainEqualTo(String value) {
            addCriterion("lottery_explain =", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainNotEqualTo(String value) {
            addCriterion("lottery_explain <>", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainGreaterThan(String value) {
            addCriterion("lottery_explain >", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainGreaterThanOrEqualTo(String value) {
            addCriterion("lottery_explain >=", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainLessThan(String value) {
            addCriterion("lottery_explain <", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainLessThanOrEqualTo(String value) {
            addCriterion("lottery_explain <=", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainLike(String value) {
            addCriterion("lottery_explain like", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainNotLike(String value) {
            addCriterion("lottery_explain not like", value, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainIn(List<String> values) {
            addCriterion("lottery_explain in", values, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainNotIn(List<String> values) {
            addCriterion("lottery_explain not in", values, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainBetween(String value1, String value2) {
            addCriterion("lottery_explain between", value1, value2, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryExplainNotBetween(String value1, String value2) {
            addCriterion("lottery_explain not between", value1, value2, "lotteryExplain");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusIsNull() {
            addCriterion("lottery_status is null");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusIsNotNull() {
            addCriterion("lottery_status is not null");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusEqualTo(Byte value) {
            addCriterion("lottery_status =", value, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusNotEqualTo(Byte value) {
            addCriterion("lottery_status <>", value, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusGreaterThan(Byte value) {
            addCriterion("lottery_status >", value, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("lottery_status >=", value, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusLessThan(Byte value) {
            addCriterion("lottery_status <", value, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusLessThanOrEqualTo(Byte value) {
            addCriterion("lottery_status <=", value, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusIn(List<Byte> values) {
            addCriterion("lottery_status in", values, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusNotIn(List<Byte> values) {
            addCriterion("lottery_status not in", values, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusBetween(Byte value1, Byte value2) {
            addCriterion("lottery_status between", value1, value2, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andLotteryStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("lottery_status not between", value1, value2, "lotteryStatus");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonIsNull() {
            addCriterion("minimum_person is null");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonIsNotNull() {
            addCriterion("minimum_person is not null");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonEqualTo(Integer value) {
            addCriterion("minimum_person =", value, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonNotEqualTo(Integer value) {
            addCriterion("minimum_person <>", value, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonGreaterThan(Integer value) {
            addCriterion("minimum_person >", value, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonGreaterThanOrEqualTo(Integer value) {
            addCriterion("minimum_person >=", value, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonLessThan(Integer value) {
            addCriterion("minimum_person <", value, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonLessThanOrEqualTo(Integer value) {
            addCriterion("minimum_person <=", value, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonIn(List<Integer> values) {
            addCriterion("minimum_person in", values, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonNotIn(List<Integer> values) {
            addCriterion("minimum_person not in", values, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonBetween(Integer value1, Integer value2) {
            addCriterion("minimum_person between", value1, value2, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andMinimumPersonNotBetween(Integer value1, Integer value2) {
            addCriterion("minimum_person not between", value1, value2, "minimumPerson");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIsNull() {
            addCriterion("audit_status is null");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIsNotNull() {
            addCriterion("audit_status is not null");
            return (Criteria) this;
        }

        public Criteria andAuditStatusEqualTo(Byte value) {
            addCriterion("audit_status =", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotEqualTo(Byte value) {
            addCriterion("audit_status <>", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThan(Byte value) {
            addCriterion("audit_status >", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThanOrEqualTo(Byte value) {
            addCriterion("audit_status >=", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThan(Byte value) {
            addCriterion("audit_status <", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThanOrEqualTo(Byte value) {
            addCriterion("audit_status <=", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIn(List<Byte> values) {
            addCriterion("audit_status in", values, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotIn(List<Byte> values) {
            addCriterion("audit_status not in", values, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusBetween(Byte value1, Byte value2) {
            addCriterion("audit_status between", value1, value2, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotBetween(Byte value1, Byte value2) {
            addCriterion("audit_status not between", value1, value2, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionIsNull() {
            addCriterion("audit_opinion is null");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionIsNotNull() {
            addCriterion("audit_opinion is not null");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionEqualTo(String value) {
            addCriterion("audit_opinion =", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionNotEqualTo(String value) {
            addCriterion("audit_opinion <>", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionGreaterThan(String value) {
            addCriterion("audit_opinion >", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionGreaterThanOrEqualTo(String value) {
            addCriterion("audit_opinion >=", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionLessThan(String value) {
            addCriterion("audit_opinion <", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionLessThanOrEqualTo(String value) {
            addCriterion("audit_opinion <=", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionLike(String value) {
            addCriterion("audit_opinion like", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionNotLike(String value) {
            addCriterion("audit_opinion not like", value, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionIn(List<String> values) {
            addCriterion("audit_opinion in", values, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionNotIn(List<String> values) {
            addCriterion("audit_opinion not in", values, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionBetween(String value1, String value2) {
            addCriterion("audit_opinion between", value1, value2, "auditOpinion");
            return (Criteria) this;
        }

        public Criteria andAuditOpinionNotBetween(String value1, String value2) {
            addCriterion("audit_opinion not between", value1, value2, "auditOpinion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}